include('shared.lua')
ENT.Spawnable			= false
ENT.AdminSpawnable		= false
language.Add("item_zday_ammo","some ammo")

function ENT:Draw()
	if (LocalPlayer():GetEyeTrace().Entity==self.Entity && EyePos():Distance(self.Entity:GetPos())<512 and !self.Entity:GetNetworkedBool("heldprop")) then
		if (self.RenderGroup==RENDERGROUP_OPAQUE) then
			self.OldRenderGroup=self.RenderGroup
			self.RenderGroup=RENDERGROUP_TRANSLUCENT
		end
		self:DrawEntityOutline(0.25)
		self.Entity:DrawModel()
		/*if (self:GetOverlayText()!="") then
			AddWorldTip(self.Entity:EntIndex(),self:GetOverlayText(),0.5,self.Entity:GetPos(),self.Entity)
		end*/
	else
		if (self.OldRenderGroup!=nil) then
			self.RenderGroup=self.OldRenderGroup
			self.OldRenderGroup=nil
		end
	end
	self.Entity:DrawModel()
end
